package com.huawei.esdk.tp.cxf.enumgen;

public abstract class DayOfWeekMapping {

    public final static int SUNDAY = 0;
    public final static int MONDAY = 1;
    public final static int TUESDAY = 2;
    public final static int WEDNESDAY = 3;
    public final static int THURSDAY = 4;
    public final static int FRIDAY = 5;
    public final static int SATURDAY = 6;
    public final static int MIN = 0;
    public final static int MAX = 6;
    
	public static Integer enum2Int(DayOfWeek state){
	    if (null == state)
        {
            return null;
        }
		switch (state) {
		case SUNDAY:
			return SUNDAY;
		case MONDAY:
			return MONDAY;
		case TUESDAY:
			return TUESDAY;
		case WEDNESDAY:
            return WEDNESDAY;
		case THURSDAY:
            return THURSDAY;
		case FRIDAY:
            return FRIDAY;
	    case SATURDAY:
            return SATURDAY;
		default:
			return null;
		}
	}
	public static DayOfWeek int2Enum(Integer num) {
	    if (null == num)
        {
            return null;
        }
		switch (num) {
		case SUNDAY: 
			return DayOfWeek.SUNDAY;
		case MONDAY: 
			return DayOfWeek.MONDAY;
		case TUESDAY: 
			return DayOfWeek.TUESDAY;
		case WEDNESDAY: 
            return DayOfWeek.WEDNESDAY;
		case THURSDAY: 
            return DayOfWeek.THURSDAY;
		case FRIDAY: 
            return DayOfWeek.FRIDAY;
		case SATURDAY: 
            return DayOfWeek.SATURDAY;
		default: 
			return null;
		}
	}
}
